package com.day18me.Test;

import java.util.Set;
import java.util.TreeSet;

public class Emp2Test {
    public static void main(String[] args) {
        Set set = new TreeSet();

        Employee2 emp1 = new Employee2("老大",45,"男");
        Employee2 emp2 = new Employee2("老二",43,"男");
        Employee2 emp3 = new Employee2("老三",38,"男");
        Employee2 emp4 = new Employee2("老四",20,"女");
        Employee2 emp5 = new Employee2("老五",23,"女");


        set.add(emp1);
        set.add(emp2);
        set.add(emp3 );
        set.add(emp4 );
        set.add(emp5 );
        System.out.println(set);




    }
}
